home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Hyper / G / GroupCalc.cpt / Group Calculator / background_5948.xml < prev    next >
Extensible Markup Language  |  1992-03-19  |  15KB  |  400 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>5948</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_6603.pbm</bitmap>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_3261.css" />
  11.     <part>
  12.         <id>5</id>
  13.         <type>button</type>
  14.         <visible> <true /> </visible>
  15.         <reserved5> 0 </reserved5>
  16.         <reserved4> 0 </reserved4>
  17.         <reserved3> 0 </reserved3>
  18.         <reserved2> 0 </reserved2>
  19.         <reserved1> 0 </reserved1>
  20.         <enabled> <true /> </enabled>
  21.         <rect>
  22.             <left>166</left>
  23.             <top>306</top>
  24.             <right>336</right>
  25.             <bottom>331</bottom>
  26.         </rect>
  27.         <style>roundrect</style>
  28.         <showName> <true /> </showName>
  29.         <highlight> <false /> </highlight>
  30.         <autoHighlight> <false /> </autoHighlight>
  31.         <sharedHighlight> <true /> </sharedHighlight>
  32.         <family>0</family>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>center</textAlign>
  36.         <font>Chicago</font>
  37.         <textSize>12</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <name>Back to the Group Table</name>
  40.         <script>on mouseUpvisual effect dissolve very fastgo prevend mouseUp</script>
  41.     </part>
  42.     <part>
  43.         <id>7</id>
  44.         <type>button</type>
  45.         <visible> <true /> </visible>
  46.         <reserved5> 0 </reserved5>
  47.         <reserved4> 0 </reserved4>
  48.         <reserved3> 0 </reserved3>
  49.         <reserved2> 0 </reserved2>
  50.         <reserved1> 0 </reserved1>
  51.         <enabled> <true /> </enabled>
  52.         <rect>
  53.             <left>376</left>
  54.             <top>34</top>
  55.             <right>474</right>
  56.             <bottom>85</bottom>
  57.         </rect>
  58.         <style>roundrect</style>
  59.         <showName> <false /> </showName>
  60.         <highlight> <false /> </highlight>
  61.         <autoHighlight> <false /> </autoHighlight>
  62.         <sharedHighlight> <true /> </sharedHighlight>
  63.         <family>0</family>
  64.         <titleWidth>0</titleWidth>
  65.         <icon>0</icon>
  66.         <textAlign>center</textAlign>
  67.         <font>Chicago</font>
  68.         <textSize>12</textSize>
  69.         <textStyle>plain</textStyle>
  70.         <name>Generate the Subgroup</name>
  71.         <script>on mouseUpglobal grouptable, currentsput group(100) into aput line 1 of grouptable into totrepeat with i=1 to totput the loc of cd fld i into line i of currentsend repeatend mouseUp</script>
  72.     </part>
  73.     <part>
  74.         <id>9</id>
  75.         <type>field</type>
  76.         <visible> <false /> </visible>
  77.         <dontWrap> <false /> </dontWrap>
  78.         <dontSearch> <true /> </dontSearch>
  79.         <sharedText> <false /> </sharedText>
  80.         <fixedLineHeight> <false /> </fixedLineHeight>
  81.         <autoTab> <false /> </autoTab>
  82.         <lockText> <true /> </lockText>
  83.         <rect>
  84.             <left>206</left>
  85.             <top>43</top>
  86.             <right>298</right>
  87.             <bottom>288</bottom>
  88.         </rect>
  89.         <style>rectangle</style>
  90.         <autoSelect> <false /> </autoSelect>
  91.         <showLines> <false /> </showLines>
  92.         <wideMargins> <false /> </wideMargins>
  93.         <multipleLines> <false /> </multipleLines>
  94.         <reservedFamily> 0 </reservedFamily>
  95.         <titleWidth>0</titleWidth>
  96.         <icon>0</icon>
  97.         <textAlign>left</textAlign>
  98.         <font>Geneva</font>
  99.         <textSize>12</textSize>
  100.         <textStyle>plain</textStyle>
  101.         <textHeight>16</textHeight>
  102.         <name>elements defaults</name>
  103.         <script></script>
  104.     </part>
  105.     <part>
  106.         <id>10</id>
  107.         <type>button</type>
  108.         <visible> <true /> </visible>
  109.         <reserved5> 0 </reserved5>
  110.         <reserved4> 0 </reserved4>
  111.         <reserved3> 0 </reserved3>
  112.         <reserved2> 0 </reserved2>
  113.         <reserved1> 0 </reserved1>
  114.         <enabled> <true /> </enabled>
  115.         <rect>
  116.             <left>370</left>
  117.             <top>264</top>
  118.             <right>482</right>
  119.             <bottom>287</bottom>
  120.         </rect>
  121.         <style>roundrect</style>
  122.         <showName> <true /> </showName>
  123.         <highlight> <false /> </highlight>
  124.         <autoHighlight> <false /> </autoHighlight>
  125.         <sharedHighlight> <true /> </sharedHighlight>
  126.         <family>0</family>
  127.         <titleWidth>0</titleWidth>
  128.         <icon>0</icon>
  129.         <textAlign>center</textAlign>
  130.         <font>Chicago</font>
  131.         <textSize>12</textSize>
  132.         <textStyle>plain</textStyle>
  133.         <name>Reset Screen</name>
  134.         <script>on mouseUpglobal grouptable, currentsput line 1 of grouptable into ord-- lock screenrepeat with i=1 to ordset the loc of cd fld i to (line i of fld "elements defaults")set cursor to busyend repeatset cursor to arrowput fld "elements defaults" into currents-- unlock screen with dissolveend mouseUp</script>
  135.     </part>
  136.     <part>
  137.         <id>11</id>
  138.         <type>button</type>
  139.         <visible> <true /> </visible>
  140.         <reserved5> 0 </reserved5>
  141.         <reserved4> 0 </reserved4>
  142.         <reserved3> 0 </reserved3>
  143.         <reserved2> 0 </reserved2>
  144.         <reserved1> 0 </reserved1>
  145.         <enabled> <true /> </enabled>
  146.         <rect>
  147.             <left>392</left>
  148.             <top>145</top>
  149.             <right>462</right>
  150.             <bottom>179</bottom>
  151.         </rect>
  152.         <style>roundrect</style>
  153.         <showName> <true /> </showName>
  154.         <highlight> <false /> </highlight>
  155.         <autoHighlight> <false /> </autoHighlight>
  156.         <sharedHighlight> <true /> </sharedHighlight>
  157.         <family>0</family>
  158.         <titleWidth>0</titleWidth>
  159.         <icon>0</icon>
  160.         <textAlign>center</textAlign>
  161.         <font>Chicago</font>
  162.         <textSize>12</textSize>
  163.         <textStyle>plain</textStyle>
  164.         <name>Help</name>
  165.         <script>on mouseUppush cardgo to card "machinehelp"end mouseUp</script>
  166.     </part>
  167.     <part>
  168.         <id>13</id>
  169.         <type>button</type>
  170.         <visible> <true /> </visible>
  171.         <reserved5> 0 </reserved5>
  172.         <reserved4> 0 </reserved4>
  173.         <reserved3> 0 </reserved3>
  174.         <reserved2> 0 </reserved2>
  175.         <reserved1> 0 </reserved1>
  176.         <enabled> <true /> </enabled>
  177.         <rect>
  178.             <left>376</left>
  179.             <top>91</top>
  180.             <right>473</right>
  181.             <bottom>133</bottom>
  182.         </rect>
  183.         <style>roundrect</style>
  184.         <showName> <false /> </showName>
  185.         <highlight> <false /> </highlight>
  186.         <autoHighlight> <false /> </autoHighlight>
  187.         <sharedHighlight> <true /> </sharedHighlight>
  188.         <family>0</family>
  189.         <titleWidth>0</titleWidth>
  190.         <icon>0</icon>
  191.         <textAlign>center</textAlign>
  192.         <font>Chicago</font>
  193.         <textSize>12</textSize>
  194.         <textStyle>plain</textStyle>
  195.         <name>Close Under Conjugation</name>
  196.         <script>on mouseUpglobal grouptable, currentsput group(200) into aput line 1 of grouptable into totrepeat with i=1 to totput the loc of cd fld i into line i of currentsend repeatend mouseUp</script>
  197.     </part>
  198.     <part>
  199.         <id>8</id>
  200.         <type>field</type>
  201.         <visible> <false /> </visible>
  202.         <dontWrap> <false /> </dontWrap>
  203.         <dontSearch> <true /> </dontSearch>
  204.         <sharedText> <false /> </sharedText>
  205.         <fixedLineHeight> <false /> </fixedLineHeight>
  206.         <autoTab> <false /> </autoTab>
  207.         <lockText> <true /> </lockText>
  208.         <rect>
  209.             <left>306</left>
  210.             <top>43</top>
  211.             <right>422</right>
  212.             <bottom>290</bottom>
  213.         </rect>
  214.         <style>rectangle</style>
  215.         <autoSelect> <false /> </autoSelect>
  216.         <showLines> <false /> </showLines>
  217.         <wideMargins> <false /> </wideMargins>
  218.         <multipleLines> <false /> </multipleLines>
  219.         <reservedFamily> 0 </reservedFamily>
  220.         <titleWidth>0</titleWidth>
  221.         <icon>0</icon>
  222.         <textAlign>left</textAlign>
  223.         <font>Geneva</font>
  224.         <textSize>12</textSize>
  225.         <textStyle>plain</textStyle>
  226.         <textHeight>16</textHeight>
  227.         <name>elements current</name>
  228.         <script></script>
  229.     </part>
  230.     <part>
  231.         <id>14</id>
  232.         <type>button</type>
  233.         <visible> <true /> </visible>
  234.         <reserved5> 0 </reserved5>
  235.         <reserved4> 0 </reserved4>
  236.         <reserved3> 0 </reserved3>
  237.         <reserved2> 0 </reserved2>
  238.         <reserved1> 0 </reserved1>
  239.         <enabled> <true /> </enabled>
  240.         <rect>
  241.             <left>370</left>
  242.             <top>194</top>
  243.             <right>482</right>
  244.             <bottom>217</bottom>
  245.         </rect>
  246.         <style>roundrect</style>
  247.         <showName> <true /> </showName>
  248.         <highlight> <false /> </highlight>
  249.         <autoHighlight> <false /> </autoHighlight>
  250.         <sharedHighlight> <true /> </sharedHighlight>
  251.         <family>0</family>
  252.         <titleWidth>0</titleWidth>
  253.         <icon>0</icon>
  254.         <textAlign>center</textAlign>
  255.         <font>Chicago</font>
  256.         <textSize>12</textSize>
  257.         <textStyle>plain</textStyle>
  258.         <name>Quotient Group</name>
  259.         <script>on mouseUpglobal cosets, grouptable, RGBs, moved, PATs, gOKToColorizeset cursor to busyput group(300) into normalif normal is "NoElems" thenplay "Dizzy"answer "You need to put some elements into the Subgroup Machine before you form the quotient group."else if normal is "NoSub" thenplay "Dizzy"answer "This is not a subgroup." with "Cancel"elseif normal is "NoConj" thenplay "Wo"answer "This subgroup is not normal.  Shall I continue anyway?" with¬¨"Yes" or "Forget it"if it is "Yes" then put "OK" into normalput "notnor" into movedelseput "normal" into movedend ifif normal is "OK" thenset cursor to watchput group(301) into aset cursor to busy-- go prevput line 1 of grouptable into totput (tot+1)*(tot+1) into totif gOKToColorize is empty thenrepeat with i=2 to totset cursor to busyput short name of cd fld i into cnameput word (item cname of cosets) of RGBs into thecolorcolorizeHC "Colorfill",(the rect of cd fld i),thecolorend repeatlock screenunlock screenelseset cursor to busylock screenchoose rect toolshow bg btn 9set filled to truerepeat with i=2 to totset cursor to busyput short name of cd fld i into cnameset the pattern to item (item cname of cosets) of PATsput (the rect of cd fld i) into rrdrag from (item 1 of rr & "," & item 2 of rr) to (item 3 of rr & "," & item 4 of rr)end repeatunlock screenend ifend ifend ifchoose browse toolend mouseUp</script>
  260.     </part>
  261.     <part>
  262.         <id>16</id>
  263.         <type>field</type>
  264.         <visible> <true /> </visible>
  265.         <dontWrap> <false /> </dontWrap>
  266.         <dontSearch> <false /> </dontSearch>
  267.         <sharedText> <true /> </sharedText>
  268.         <fixedLineHeight> <false /> </fixedLineHeight>
  269.         <autoTab> <false /> </autoTab>
  270.         <lockText> <true /> </lockText>
  271.         <rect>
  272.             <left>377</left>
  273.             <top>94</top>
  274.             <right>471</right>
  275.             <bottom>132</bottom>
  276.         </rect>
  277.         <style>transparent</style>
  278.         <autoSelect> <false /> </autoSelect>
  279.         <showLines> <false /> </showLines>
  280.         <wideMargins> <false /> </wideMargins>
  281.         <multipleLines> <false /> </multipleLines>
  282.         <reservedFamily> 0 </reservedFamily>
  283.         <titleWidth>0</titleWidth>
  284.         <icon>0</icon>
  285.         <textAlign>center</textAlign>
  286.         <font>Chicago</font>
  287.         <textSize>12</textSize>
  288.         <textStyle>plain</textStyle>
  289.         <textHeight>16</textHeight>
  290.         <name></name>
  291.         <script>on mousedownsend mousedown to bg btn "Close Under Conjugation"end mousedownon mouseupsend mouseup to bg btn "Close Under Conjugation"end mouseup</script>
  292.     </part>
  293.     <part>
  294.         <id>17</id>
  295.         <type>field</type>
  296.         <visible> <true /> </visible>
  297.         <dontWrap> <false /> </dontWrap>
  298.         <dontSearch> <false /> </dontSearch>
  299.         <sharedText> <true /> </sharedText>
  300.         <fixedLineHeight> <false /> </fixedLineHeight>
  301.         <autoTab> <false /> </autoTab>
  302.         <lockText> <true /> </lockText>
  303.         <rect>
  304.             <left>376</left>
  305.             <top>41</top>
  306.             <right>475</right>
  307.             <bottom>80</bottom>
  308.         </rect>
  309.         <style>transparent</style>
  310.         <autoSelect> <false /> </autoSelect>
  311.         <showLines> <false /> </showLines>
  312.         <wideMargins> <false /> </wideMargins>
  313.         <multipleLines> <false /> </multipleLines>
  314.         <reservedFamily> 0 </reservedFamily>
  315.         <titleWidth>0</titleWidth>
  316.         <icon>0</icon>
  317.         <textAlign>center</textAlign>
  318.         <font>Chicago</font>
  319.         <textSize>12</textSize>
  320.         <textStyle>plain</textStyle>
  321.         <textHeight>16</textHeight>
  322.         <name>Generate</name>
  323.         <script>on mousedownsend mousedown to bg btn "Generate the Subgroup"end mousedownon mouseupsend mouseup to bg btn "Generate the Subgroup"end mouseup</script>
  324.     </part>
  325.     <part>
  326.         <id>18</id>
  327.         <type>button</type>
  328.         <visible> <true /> </visible>
  329.         <reserved5> 0 </reserved5>
  330.         <reserved4> 0 </reserved4>
  331.         <reserved3> 0 </reserved3>
  332.         <reserved2> 0 </reserved2>
  333.         <reserved1> 0 </reserved1>
  334.         <enabled> <true /> </enabled>
  335.         <rect>
  336.             <left>377</left>
  337.             <top>306</top>
  338.             <right>477</right>
  339.             <bottom>328</bottom>
  340.         </rect>
  341.         <style>roundrect</style>
  342.         <showName> <true /> </showName>
  343.         <highlight> <false /> </highlight>
  344.         <autoHighlight> <false /> </autoHighlight>
  345.         <sharedHighlight> <true /> </sharedHighlight>
  346.         <family>0</family>
  347.         <titleWidth>0</titleWidth>
  348.         <icon>0</icon>
  349.         <textAlign>center</textAlign>
  350.         <font>Chicago</font>
  351.         <textSize>12</textSize>
  352.         <textStyle>plain</textStyle>
  353.         <name>Quit</name>
  354.         <script>on mouseUpgo lastunlock screendoMenu "Quit Hypercard"end mouseUp</script>
  355.     </part>
  356.     <part>
  357.         <id>19</id>
  358.         <type>button</type>
  359.         <visible> <true /> </visible>
  360.         <reserved5> 0 </reserved5>
  361.         <reserved4> 0 </reserved4>
  362.         <reserved3> 0 </reserved3>
  363.         <reserved2> 0 </reserved2>
  364.         <reserved1> 0 </reserved1>
  365.         <enabled> <true /> </enabled>
  366.         <rect>
  367.             <left>370</left>
  368.             <top>229</top>
  369.             <right>483</right>
  370.             <bottom>251</bottom>
  371.         </rect>
  372.         <style>roundrect</style>
  373.         <showName> <true /> </showName>
  374.         <highlight> <false /> </highlight>
  375.         <autoHighlight> <false /> </autoHighlight>
  376.         <sharedHighlight> <true /> </sharedHighlight>
  377.         <family>0</family>
  378.         <titleWidth>0</titleWidth>
  379.         <icon>0</icon>
  380.         <textAlign>center</textAlign>
  381.         <font>Chicago</font>
  382.         <textSize>12</textSize>
  383.         <textStyle>plain</textStyle>
  384.         <name>Find Center</name>
  385.         <script>on mouseUpglobal grouptable, currentssend mouseup to bg btn "Reset Screen"put group(150) into aput line 1 of grouptable into totrepeat with i=1 to totput the loc of cd fld i into line i of currentsend repeatend mouseUp</script>
  386.     </part>
  387.     <content>
  388.         <layer>background</layer>
  389.         <id>16</id>
  390.         <text>Close UnderConjugation</text>
  391.     </content>
  392.     <content>
  393.         <layer>background</layer>
  394.         <id>17</id>
  395.         <text>Generate theSubgroup</text>
  396.     </content>
  397.     <name></name>
  398.     <script>on releasedglobal currentsput the param of 1 into xput group(100+x) into adjustmentput the loc of cd fld x into line x of currentsend releasedon opencardglobal currentsput bg fld "elements current" into currentspass opencardend opencardon closecardglobal currentsput currents into bg fld "elements current"pass closecardend closecardon dosetupglobal grouptable, dx, dyput line 1 of grouptable into ordlock screen-- domenu "New Field"-- put the number of card fields into which-- set the name of card field which to "From"-- put "Subgroup Machine" into card field "From"-- domenu "New Field"-- put the number of card fields into which-- set the name of card field which to "To"repeat with i = 1 to ordset cursor to busydomenu "New Field"put the number of card fields into whichset the name of card field which to iset the style of card field which to shadowset the script of card field which to ¬¨("on mousedown" & return & "repeat while the mouse is down" & return ¬¨& "set the loc of the target to the mouseLoc" & return & ¬¨"end repeat" & return & "released" && which & return ¬¨& "end mousedown")go prevselect text of card field (i+1)doMenu "Copy Text"go nextselect text of card field whichdoMenu "Paste Text"set the textalign of card field which to centerset the rect of card field which to 20,(23+(dx*i)),(20+dy),(23+(dx*(i+1)))set lockText of card field which to trueput (the loc of card fld which & return) after fld "elements defaults"put (the loc of card fld which & return) after fld "elements current"end repeatchoose browse toolset cursor to arrowunlock screen with visual effect dissolveend dosetup</script>
  399. </background>
  400.